//
//  AppDelegate+Extend.m
//  基本框架
//
//  Created by runone02 on 2018/6/28.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "AppDelegate+Extend.h"

@implementation AppDelegate (Extend)
- (void) customizeInterface{
    UINavigationBar *navigationBarAppearance = [UINavigationBar appearance];
    [navigationBarAppearance setBarTintColor:RGB(255, 255, 255)];
    //返回箭头颜色
    [navigationBarAppearance setTintColor:[ZMColor blackColor]];
    
    NSDictionary *textAttributes = @{
                                     NSFontAttributeName  : TITLE_FONT(30),
                                     NSForegroundColorAttributeName : [ZMColor blackColor],
                                     };
    [navigationBarAppearance setTitleTextAttributes:textAttributes];
    
    //底部tabbar样式
    [[UITabBar appearance] setBackgroundImage:[[UIImage alloc]init]];
    
    [[UITabBar appearance] setBackgroundColor:[UIColor whiteColor]];
    
    [[UITabBar appearance] setShadowImage:[UIImage imageWithColor:[ZMColor colorWithHexString:@"0xf5f5f5"]]];
    
    //腾讯BUGly
    [Bugly startWithAppId:@"df13c9a39f"];
    
    //button按钮排他性
    if ([[[UIDevice currentDevice] systemVersion] floatValue] > 8.0 ){
        [[UIButton appearance] setExclusiveTouch:YES];
    }
    
}

@end
